package com.group02.community.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;


import com.group02.community.entity.community.ZyCommunity;
import com.group02.community.entity.vo.ZyCommunityVO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface CommunityMapper extends BaseMapper<ZyCommunity> {
    IPage<ZyCommunityVO> getCommunityList(Page<ZyCommunity> page, @Param("zyCommunity") ZyCommunity zyCommunity);


    List<String> getCommunityNameList();


    void updateDeptById(@Param("communityId") String communityId,@Param("deptId")  String deptId);
}
